package inicio;

import java.io.IOException;
import java.net.*;
import java.util.ArrayList;

public class Servidor {

	public static void main(String[] args) {
		try {
			ServerSocket s = new ServerSocket(8189);
			ThreadEscucha te[] = new ThreadEscucha[3];
			ArrayList<ThreadEscucha> al = new ArrayList<ThreadEscucha>();
			for (int i = 0; i < 3; i++) {
				te[i] = new ThreadEscucha(s.accept());
				te[i].start();
				al.add(te[i]);
			}

		} catch (IOException e) {
			e.printStackTrace();

		}

	}

}
